export const mockWrap = (datas, msg = "调用成功", type = "00000") => {
  let key = "resultData";
  if (datas.constructor === Object && Object.keys(datas).length === 0) {
    key = "data";
  }
};

export const objAnaly = (obj) => {
  if (Array.isArray(obj)) {
    for (let i of obj) {
      objAnaly(i);
    }
  } else if (
    typeof obj === "string" ||
    typeof obj === "boolean" ||
    typeof obj === "number"
  ) {
    console.log(obj + "  +");
  } else if (typeof obj === "object") {
    for (let i in obj) {
      if (Array.isArray(obj[i])) {
        for (let j of obj[i]) {
          objAnaly(j);
        }
      } else if (
        typeof obj[i] === "string" ||
        typeof obj[i] === "boolean" ||
        typeof obj[i] === "number"
      ) {
        console.log(i + ":" + obj[i]);
      } else if (typeof obj[i] === "object") {
        for (let j of obj[i]) {
          objAnaly(j);
        }
      }
    }
  }
};


